// import 'dart:io';
//
// import 'package:flutter_baidu_mapapi_base/flutter_baidu_mapapi_base.dart';
// // import 'package:flutter_bmflocation/bdmap_location_flutter_plugin.dart';
// import 'package:flutter_bmflocation/flutter_bmflocation.dart';
// import 'package:flutter_syt/domain/waystation/map_helper.dart';
// import 'package:flutter_syt/starter/app_context.dart';
// import 'package:flutter_syt/starter/processor.dart';
//
// class MapInitializedProcessor with Processor<dynamic> {
//   final String appKey = '72kCpY4F2Xvx8zh6wTU8qme1CMBKHzdU';
//
//   @override
//   Future postProcessor(AppContext appContext, [t]) async {
//     if (Platform.isIOS) {
//       LocationFlutterPlugin().authAK(appKey);
//       // LocationFlutterPlugin.setApiKey(appKey);
//       BMFMapSDK.setApiKeyAndCoordType(appKey, BMF_COORD_TYPE.BD09LL);
//     } else if (Platform.isAndroid) {
//       BMFMapSDK.setCoordType(BMF_COORD_TYPE.BD09LL);
//     }
//     LocationHelper.instance.setLocOption();
//
//     return Future.value();
//   }
// }
